// @ts-ignore
/* eslint-disable */
import { api } from "@/utils/api";

/** 新增安全-危化品预案和物资数据 POST /safeChemicalsPlanAndGoods/add */
export async function safeChemicalsPlanAndGoodsAdd(
  body: BIZAPI.SafeChemicalsPlanAndGoodsCreateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function safeChemicalsPlanAndGoodsAdd(
  body: BIZAPI.SafeChemicalsPlanAndGoodsCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function safeChemicalsPlanAndGoodsAdd(
  body: BIZAPI.SafeChemicalsPlanAndGoodsCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function safeChemicalsPlanAndGoodsAdd(
  body: BIZAPI.SafeChemicalsPlanAndGoodsCreateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/safeChemicalsPlanAndGoods/add`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/safeChemicalsPlanAndGoods/add`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 删除安全-危化品预案和物资数据 POST /safeChemicalsPlanAndGoods/delete */
export async function safeChemicalsPlanAndGoodsDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function safeChemicalsPlanAndGoodsDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function safeChemicalsPlanAndGoodsDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function safeChemicalsPlanAndGoodsDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/safeChemicalsPlanAndGoods/delete`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/safeChemicalsPlanAndGoods/delete`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取安全-危化品预案和物资数据 POST /safeChemicalsPlanAndGoods/get */
export async function safeChemicalsPlanAndGoodsGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultSafeChemicalsPlanAndGoodsEntity>;

export async function safeChemicalsPlanAndGoodsGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultSafeChemicalsPlanAndGoodsEntity>>;

export async function safeChemicalsPlanAndGoodsGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultSafeChemicalsPlanAndGoodsEntity>;

export async function safeChemicalsPlanAndGoodsGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultSafeChemicalsPlanAndGoodsEntity>(
      `/app/safeChemicalsPlanAndGoods/get`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultSafeChemicalsPlanAndGoodsEntity>(
    `/app/safeChemicalsPlanAndGoods/get`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 获取安全-危化品预案和物资VO数据 POST /safeChemicalsPlanAndGoods/getVo */
export async function safeChemicalsPlanAndGoodsGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultSafeChemicalsPlanAndGoodsResp>;

export async function safeChemicalsPlanAndGoodsGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultSafeChemicalsPlanAndGoodsResp>>;

export async function safeChemicalsPlanAndGoodsGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultSafeChemicalsPlanAndGoodsResp>;

export async function safeChemicalsPlanAndGoodsGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultSafeChemicalsPlanAndGoodsResp>(
      `/app/safeChemicalsPlanAndGoods/getVo`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultSafeChemicalsPlanAndGoodsResp>(
    `/app/safeChemicalsPlanAndGoods/getVo`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 获取安全-危化品预案和物资分页数据 POST /safeChemicalsPlanAndGoods/page */
export async function safeChemicalsPlanAndGoodsPage(
  body: BIZAPI.SafeChemicalsPlanAndGoodsQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageSafeChemicalsPlanAndGoodsEntity>;

export async function safeChemicalsPlanAndGoodsPage(
  body: BIZAPI.SafeChemicalsPlanAndGoodsQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageSafeChemicalsPlanAndGoodsEntity>>;

export async function safeChemicalsPlanAndGoodsPage(
  body: BIZAPI.SafeChemicalsPlanAndGoodsQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageSafeChemicalsPlanAndGoodsEntity>;

export async function safeChemicalsPlanAndGoodsPage(
  body: BIZAPI.SafeChemicalsPlanAndGoodsQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageSafeChemicalsPlanAndGoodsEntity>(
      `/app/safeChemicalsPlanAndGoods/page`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultIPageSafeChemicalsPlanAndGoodsEntity>(
    `/app/safeChemicalsPlanAndGoods/page`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 更新安全-危化品预案和物资数据 POST /safeChemicalsPlanAndGoods/update */
export async function safeChemicalsPlanAndGoodsUpdate(
  body: BIZAPI.SafeChemicalsPlanAndGoodsUpdateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function safeChemicalsPlanAndGoodsUpdate(
  body: BIZAPI.SafeChemicalsPlanAndGoodsUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function safeChemicalsPlanAndGoodsUpdate(
  body: BIZAPI.SafeChemicalsPlanAndGoodsUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function safeChemicalsPlanAndGoodsUpdate(
  body: BIZAPI.SafeChemicalsPlanAndGoodsUpdateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/safeChemicalsPlanAndGoods/update`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/safeChemicalsPlanAndGoods/update`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取安全-危化品预案和物资VO分页数据 POST /safeChemicalsPlanAndGoods/voPage */
export async function safeChemicalsPlanAndGoodsVoPage(
  body: BIZAPI.SafeChemicalsPlanAndGoodsQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageSafeChemicalsPlanAndGoodsResp>;

export async function safeChemicalsPlanAndGoodsVoPage(
  body: BIZAPI.SafeChemicalsPlanAndGoodsQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageSafeChemicalsPlanAndGoodsResp>>;

export async function safeChemicalsPlanAndGoodsVoPage(
  body: BIZAPI.SafeChemicalsPlanAndGoodsQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageSafeChemicalsPlanAndGoodsResp>;

export async function safeChemicalsPlanAndGoodsVoPage(
  body: BIZAPI.SafeChemicalsPlanAndGoodsQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageSafeChemicalsPlanAndGoodsResp>(
      `/app/safeChemicalsPlanAndGoods/voPage`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultIPageSafeChemicalsPlanAndGoodsResp>(
    `/app/safeChemicalsPlanAndGoods/voPage`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}
